﻿package com.actionpals.components.controls.calendar
{
	public class CalendarEventItem
	{
		private var _title:String;
		private var _startDate:Date;
		private var _endDate:Date;
		private var _where:String;
		private var _eventURL:String;
		private var _photoURL:String;
		
		public function CalendarEventItem( title:String=null, startDate:Date=null, endDate:Date=null, where:String=null, eventURL:String=null, photoURL:String=null )
		{
			this.title = title;
			this.startDate = startDate;
			this.endDate = endDate ? endDate : startDate;
			this.where = where;
			this.eventURL = eventURL;
			this.photoURL = photoURL;
		}
		
		public function get title():String
		{
			return _title;
		}
		public function set title( value:String ):void
		{
			_title = value;
		}
		
		public function get startDate():Date
		{
			return _startDate;
		}
		public function set startDate( value:Date ):void
		{
			_startDate = value;
		}
		
		public function get endDate():Date
		{
			return _endDate;
		}
		public function set endDate( value:Date ):void
		{
			_endDate = value;
		}
		
		public function get where():String
		{
			return _where;
		}
		public function set where( value:String ):void
		{
			_where = value;
		}
		
		public function get eventURL():String
		{
			return _eventURL;
		}
		public function set eventURL( value:String ):void
		{
			_eventURL = value;
		}
		
		public function get photoURL():String
		{
			return _photoURL;
		}
		public function set photoURL( value:String ):void
		{
			_photoURL = value;
		}
		
	}
}
